package com.xiangdao.dao;

import com.xiangdao.model.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface MessageDao {
    int addMessage(Message message);

    int addMessageByShareProduct(Message message);

    void deleteMessage(@Param("id") Integer id);

    ArrayList<Message> findAllMessage();



    int addMessageByPostSecond(Message message);

    Integer countMessageByShareProduct(@Param("user") Integer user);
    Integer countMessageByuserId(@Param("user_id") Integer user);
}
